#include <dolphin/ip.h>
#define IP_ALEN 4 // IP address length
void IPGetNetmask ( IPInterface* interface, u8* netmask );
IPGetAddr() gets the netmask of the specified interface.
interface |
Pointer to IPInterface to get the netmask. Use
NULL to specify the default network interface. |
netmask |
Pointer to array[IP_ALEN] of u8 that receives the netmask. |
None.